package Service;

import java.util.Collection;

import Bean.BeanOrder;
import cart.ShoppingCart;
import exception.BooksNotFoundException;

public interface OrderService {
	public  void AddOrder(String userid, ShoppingCart cart) throws Exception ;
	public Collection<BeanOrder> getOrders(String userid) throws BooksNotFoundException;
	public Collection<BeanOrder> getAllOrders() throws BooksNotFoundException;
	public void finishOrder(int orderid);
	public void deleteOrder(int orderid) ;
	public Collection<BeanOrder> getOrdersByCourse(int id) throws BooksNotFoundException;
	public void AddOrderShiXun(String userid,int class_id,int student_id,double class_price) throws Exception;
}
